<template>
    <div class="order">
        <div v-if="$route.query.orderId" class="detail">
            <Detail />
        </div>
        <div v-else class="all">
            <AllOrder />
        </div>
    </div>
</template>

<script setup lang="ts">
import { useRoute } from 'vue-router';
import AllOrder from './components/allOrder.vue';
import Detail from './components/detail.vue';

let $route = useRoute()
</script>

<style scoped></style>